<template>
  <div>
    <!--头部-->
    <div id="header">
      <header class="head_column">
        <div class="head_column_outer">
          <div class="head_column-1 cl">
            <router-link to="/home"  target="headFrame">
              <img alt="logo" class="logo_icon " :src="logo" ></router-link>
              <a href="javascript:;" class="menu_btn" @click="handleMask"
              :style="{background: 'url('+menuBtn+') center no-repeat'}">
              </a>
            <div class="tel" >
              <img :src="telImg" />
              {{tel}}</div>
            <ul class="head_column_menu cl">
                <li
                  v-for="link in headData"
                  :class="[link.value === curId || link.detail === curId ? 'active' : '', link.value !== 'Product' ? '' : 'Product']"
                >
                  <a href="javascript:;" class="li" @click="goDatas(link)" style="position: relative;width: 100%;display: inline-block">
                    <span v-if="link.value !== 'Product'">{{ link.label}}</span>
                    <span v-if="link.value === 'Product'" style="height: 25px;line-height: 25px;position: absolute;top: 14px">
                      可视化</span>
                    <span v-if="link.value === 'Product'"
                      style="height: 25px;line-height: 25px;position: relative;top: 10px">数据应用开发平台</span>
                    <i class="triangle_down"
                       v-if="link.value === 'Product' || link.value === 'Serve'"
                       :style="{backgroundImage: 'url('+down+')',
                        backgroundPosition: 'center', backgroundRepeat: 'no-repeat'}"></i>

                  </a>
                  <ul class="head_column_menu1_list " v-if="link.value === 'Product' && productData.length > 0">
                    <li v-for="item in productData" @click="goDetails(item,'ProductDetail')">
                      <a href="javascript:;">
                        <h3>
                          <span class="iconfontx"><img :src="item.productMinImg[2]"/></span>
                          <span v-text="item.productName"></span>
                        </h3>
                        <p v-text="item.productSlogan"></p>
                      </a>
                    </li>
                  </ul>
                  <ul class="head_column_menu1_list " v-if="link.value === 'Serve' && serveData.length > 0">
                    <li v-for="(item, index) in serveData" v-if="index < 6" @click="goDetails(item, 'Serve')">
                      <a href="javascript:;" class="li">
                        <h3>
                          <span class="iconfontx"><img :src="item.serveMinImg[1]"/></span>
                          <span>{{item.serveName}}</span>
                        </h3>
                        <p v-text="item.serveIntroduce"></p>
                      </a>
                    </li>
                  </ul>
                </li>
            </ul>
          </div>
          <div class="head_column-2 " :class="isShow ? 'active' : ''">
            <div class="head_column_mask" @click="isShow = false"></div>
            <div class="head_column_list">
              <ul class="head_column_menu">
                <li class="no_arrow " v-for="link in headData">
                  <a href="javascript:;" class="a" @click="goDatas(link)">
                    <a href="javascript:;" class="a" style="display: inline-block;font-size:14px;"> {{ link.label}}</a>
                    <i class="triangle_down"
                       v-if="link.value === 'Product' || link.value === 'Serve'"
                       :style="{backgroundImage: 'url('+down+')', backgroundPosition: 'center', backgroundRepeat: 'no-repeat'}"></i>
                  </a>
                  <ul class="menu1_list" v-if="link.value === 'Product'">
                    <li v-for="child in productData"  @click="goDetails(child, 'ProductDetail')">
                      <a href="javascript:;" class="li">
                        <h3>
                          <span class="iconfontx"
                            :style="{
                              backgroundImage: 'url('+child.productMinImg[2]+')',
                              backgroundRepeat: 'no-repeat',
                              backgroundPosition: 'center',
                              backgroundSize: '100%'
                            }"><!--<img :src="baseURL + child.productMinImg[2]"/>--></span>
                          <span>{{child.productName}}</span>
                        </h3>
                      </a>
                    </li>
                  </ul>
                  <ul class="menu1_list" v-if="link.value === 'Serve'">
                    <li v-for="(item,index) in serveData"v-if="index < 6" @click="goDetails(item, 'Serve')">
                      <a href="javascript:;" class="li">
                        <h3>
                          <span class="iconfontx"
                                :style="{
                              backgroundImage: 'url('+item.serveMinImg[1]+')',
                              backgroundRepeat: 'no-repeat',
                              backgroundPosition: 'center',
                              backgroundSize: item.serveId === 31 ? '80% ' : '100%'
                            }"><!--<img :src="item.serveMinImg[1]"/>--></span>
                          <span>{{item.serveName}}</span>
                        </h3>
                      </a>
                    </li>
                  </ul>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </header>
    </div>
    <!--底部-->
    <footer class="footer">
      <div class="main-width cl">
        <div class="col-md-6 left">
          <div>
            <h6>朔悦服务</h6>
            <ul class="list_unstyled list_inline" v-loading="serveLoad">
              <li v-for="(detail,index) in serveData"  v-if="serveData.length > 0 && index < 6" @click="goDetails(detail, 'Serve')">
                <a href="javascript:;" >
                  {{ detail.serveName}}
                </a>
              </li>
            </ul>
          </div>
          <div>
            <h6>解决方案</h6>
            <ul class="list_unstyled list_inline" v-loading="solutionLoad">
              <li v-for="detail in solutionData"  v-if="solutionData.length > 0" @click="goDetails(detail, 'SolutionDetail')">
                <a href="javascript:;">
                  {{ detail.solutionName}}
                </a>
              </li>
            </ul>
          </div>
          <div>
            <h6>朔悦产品 </h6>
            <ul class="list_unstyled list_inline" v-loading="productLoad">
              <li v-for="item in productData" @click="goDetails(item,'ProductDetail')">
                <a href="javascript:;" >
                  {{ item.productName}}
                </a>
              </li>
            </ul>
          </div>
        </div>
        <div class="right">
          <div>
            <h6>关于朔悦</h6>
            <ul class="list_unstyled">
              <li><router-link to="/about?id=0" >我们是谁</router-link></li>
              <li><router-link to="/about?id=1" >我们的理念</router-link></li>
              <li><router-link to="/about?id=2" >我们的价值观</router-link></li>
              <li><router-link to="/about?id=3" >我们服务的客户</router-link></li>
              <li><router-link to="/about?id=4" >我们的团队</router-link></li>
            </ul>
          </div>
          <div>
            <h6>联系我们</h6>
            <p> <span class="weixin"><img :src="ewm" style="width: 127px" alt=""></span></p>
            <h5>服务热线</h5>
            <p><b class="tel">{{tel}}</b></p>
          </div>
        </div>
      </div>
      <div class="copyright">
        <p>© 2015 - 2020 shuoyeah.com 版权所有 sitemap.xml</p>
        <div class="ali-report-wrap">
          <a class="ace-link ace-link-primary ali-report-link"
             href="https://beian.miit.gov.cn"
             target="_blank"
             data-spm-anchor-id="5176.12825654.7y9jhqsfz.113">
            <img class="ali-report-img" :src="aliReportImg" data-spm-anchor-id="5176.12825654.7y9jhqsfz.i0.3dbd2c4aoYvotk">
            渝ICP备19013208号-1
          </a>
          <a class="ace-link ace-link-primary ali-report-link" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=50009802000985" target="_blank" data-spm-anchor-id="5176.12825654.7y9jhqsfz.114">
            <img :data-src="aliReportImg1" class="ali-report-img" :src="aliReportImg1">
            <span class="ali-report-link-text" data-spm-anchor-id="5176.12825654.7y9jhqsfz.i2.3dbd2c4aoYvotk">
             渝公网安备 50009802000985号</span></a></div>
      </div>
    </footer>
  </div>

</template>

<script>
import headerJs from './headerJs'
export default headerJs
</script>

<style scoped>

</style>
